<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Slardar script test</title>


  <script>
    (function (i, s, o, g, r, a, m) {
      i['SlardarMonitorObject'] = r;
      (i[r] =
        i[r] ||
        function () {
          (i[r].q = i[r].q || []).push(arguments);
        }),
      (i[r].l = 1 * new Date());
      (a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
      // a.async = 1;
      a.src = g;
      m.parentNode.insertBefore(a, m);
      i[r].globalPreCollectError = function () {
        i[r]('precollect', 'error', arguments);
      };
      if (typeof i.addEventListener === 'function') {
        i.addEventListener('error', i[r].globalPreCollectError, true);
      }
      if ('PerformanceLongTaskTiming' in i) {
        var g = (i[r].lt = {
          e: []
        });
        g.o = new PerformanceObserver(l => {
          g.e = g.e.concat(l.getEntries());
        });
        g.o.observe({
          entryTypes: ['longtask']
        });
      }
    })(
      window,
      document,
      'script',
      'http://localhost:8080/cn/browser.cn.js?bid=sdk-script',
      'Slardar'
    );

    Slardar('config', Cypress.env().config);
  </script>

</head>

<body>
  <div id="app"></div>

  <!-- integrity 错误 -->
  <script src="http://tosv.byted.org/obj/infinity/olbgp.js"
    integrity="sha384-we28jtBRy+u+xjjqWbsGRnktXhlq6H/4Ca+3AnmfVUj2t1mGlTEd+HiVzsersTxf" crossorigin="anonymous">
  </script>
</body>

</html>